
<template>
  <div style="height: 100px"> ----</div>
  <button @click="getUser" >获取app数据</button>
</template>
<script setup lang="js">
function getUser() {
  console.log("getUser");
  window.xcapp.callHandler("getUser","你好").then(function(data) {
    console.log("拿到的数据:", data);
    alert("aaaaaaa="+JSON.stringify(data))
  });
}

</script>

<style scoped lang="less">

</style>